// 接口的实现

interface ISwim {
  swimming: () => void
}

const a: ISwim = {
  swimming: () => {
    console.info('swimming')
  }
}

a.swimming()

class Student implements ISwim {
  swimming() {
    console.info('我去游泳了')
  };
}

const stu = new Student()
stu.swimming()

export { }